package com.jz.community.modulemine.rechargephone.view;

import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.jz.community.modulemine.R;

import me.codeboy.android.aligntextview.AlignTextView;

/**
 * Created by Ani_H on 2018/1/16.
 */

public class PhoneFareDialog extends AlertDialog {

    private Context mContext;

    private AlignTextView tips;
    private AlignTextView tips2;
    private ImageView dis;

    public PhoneFareDialog(Context context) {
        super(context, R.style.OrderRemindDialog);
        this.mContext = context;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.module_mine_dialog_phone_fare);
        tips = (AlignTextView) findViewById(R.id.phone_fare_tv);
        tips2 = (AlignTextView) findViewById(R.id.phone_fare_tv2);
        dis = (ImageView) findViewById(R.id.phone_fare_dismiss);

        tips.setText(mContext.getResources().getString(R.string.phone_fare_tip1));
        tips2.setText(mContext.getResources().getString(R.string.phone_fare_tip2));

        dis.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
    }

}
